package cn.ikun.mzw.jdbc;


import java.sql.DriverManager;

public class AppJdbc {
    public static void main(String[] args) throws Exception{
        // import com.mysql.jdbc.Driver
        //加载MySQL的驱动类
        Class.forName("com.mysql.jdbc.Driver");
        String url="jdbc:mysql://localhost:3306/test?useSSL=false";
        String username="root";
        String password="root";

        DriverManager.getConnection(url,username,password);
        System.out.println("连接成功~");




    }
}
